import request from "../utils/request.js";

export const getGood = (id) => {
  return request({
    method: "get",
    url: `/homeData/` + id,
  });
};

export const getHomeData = () => {
  return request({
    method: "get",
    url: "/homeData",
  });
};

export const getNewsData = () => {
  return request({
    method: "get",
    url: "/news",
  });
};
export const getNewsDate = (id) => {
  return request({
    method: "get",
    url: "/news/" + id,
  });
};
export const getgoodss = () => {
  return request({
    method: "get",
    url: `/phone`,
  });
};
export const getparts = () => {
  return request({
    method: "get",
    url: `/accessories`,
  });
};
